package com.example.eightapi.controller;


import com.example.eightapi.pojo.area_num;
import com.example.eightapi.service.AreanumService;
import com.example.eightapi.util.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class AreanumController {
    @Autowired
    private AreanumService areanumService;
    @GetMapping("/queryAllareanum")
    public ResponseResult<List<area_num>> queryAllareanum (){
        List<area_num>pf =areanumService.queryAllareanum();
        return new ResponseResult<>("200","查询成功",pf);
    }
}
